<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include/include :: header('修改部门')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="editForm" th:action="@{/admin/dept}" th:object="${viewobject}">
			<input name="deptId"   type="hidden" th:field="*{deptId}"   />
			<input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" />
			<input type="hidden" name="oper" id="oper" th:value="${oper}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label">上级部门：</label>
				<div class="col-sm-8">
				    <div class="input-group">
						<input class="form-control" type="text"  th:onclick="selectDeptTree()" id="treeName" readonly="true" th:value="${viewobject.parentName == null ? '无' : viewobject.parentName}">
					    <span class="input-group-addon"><i class="fa fa-search"></i></span>
				    </div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">部门名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" id="name" th:field="*{name}" maxlength="50" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">部门编码：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="deptCode" id="deptCode" th:field="*{deptCode}" maxlength="20" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">显示排序：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="sor" th:field="*{sort}" maxlength="3" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea name="remark" maxlength="250" class="form-control" rows="3">[[*{remark}]]</textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include/include :: footer" />
	<script th:src="@{/pages/sysadm/dept/deptEdit.js}"></script>
</body>
</html>
